/**
 * 
 */
package com.gopay.cashier.aspect.handler;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;

/**
 * @LogClientHandler.java
 * @author Ryan
 * @2013-8-22 上午9:57:43 www.gopay.com.cn Inc.All rights reserved.
 */
public class LogClientHandler extends IoHandlerAdapter {

    @Override
    public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
        session.close(true);
    }

    @Override
    public void messageReceived(IoSession session, Object message) throws Exception {
        session.close(true);
    }
}
